﻿<Window x:Class="WPF101_GetStarted.DataTpl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Data Template" Height="403" Width="351" Loaded="Window_Loaded">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="GetStartedDictionary.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <StackPanel>
        <Label Background="{StaticResource defaultBackground}" Height="34" Name="label1" VerticalAlignment="Top" FontWeight="Bold" FontSize="16" FlowDirection="RightToLeft" HorizontalAlignment="Left" Width="109">My Task List</Label>
        <Button Height="43" Name="button1" VerticalAlignment="Top" Click="button1_Click">Add &amp; Update Task</Button>
        <ListBox Name="mytasklistbox" ItemsSource="{Binding}" 
                 ItemTemplate="{StaticResource myTaskTemplate}"
                 HorizontalAlignment="Stretch"
                 IsSynchronizedWithCurrentItem="True"
                 Margin="5,5,5,5" 
                 Height="235" />
    </StackPanel>
</Window>
